//
//  Phone.m
//  OC03_属性_点语法
//
//  Created by dllo on 16/5/24.
//  Copyright © 2016年 Rain. All rights reserved.
//

#import "Phone.h"

@implementation Phone

-(instancetype)initWithNumber:(NSInteger)number withSize:(NSInteger)size withBrand:(NSString *)brand withPrice:(NSInteger)price{
    self = [super init];
    if(self){
        _number = number;
        _size = size;
        _brand = brand;
        _price = price;
    }
    return self;
}

+(instancetype)PhoneinitWithNumber:(NSInteger)number withSize:(NSInteger)size withBrand:(NSString *)brand withPrice:(NSInteger)price{
    Phone *phone = [[Phone alloc] initWithNumber:number withSize:size withBrand:brand withPrice:price];
    return phone;
}

-(void)myPrint{
    NSLog(@"%ld %ld %@ %ld",_number,_size,_brand,_price);
}

@end
